package com.ado.abyss.core.manager;

import com.ado.abyss.core.dal.model.SysDept;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author adonais
 * @date 2020/7/9
 * @description SysDeptManager
 **/
public interface SysDeptManager extends IService<SysDept> {

    /**
     *
     * @return
     */
    List<SysDept> findAll();

    /**
     *
     * @param record
     * @return
     */
    boolean saveDept(SysDept record);

    /**
     *
     * @param id
     * @return
     */
    boolean deleteById(Long id);

    /**
     *
     * @param list
     * @return
     */
    boolean deleteByIds(List<Long> list);

    /**
     *
     * @param id
     * @return
     */
    SysDept findById(Long id);
}
